<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>首页Banner管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="首页Banner管理">
		<link rel="stylesheet" type="text/css" href="<%=path%>/js/easyui/themes/default/easyui.css"/>	
		<script type="text/javascript" src="<%=path%>/js/easyui/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="<%=path%>/js/easyui/easyloader.js"></script>
		<script type="text/javascript" src="<%=path%>/js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="<%=path%>/js/modules/js-indexPicManager.js"></script>
 	<link href="<%=path%>/css/common.css" type="text/css" rel="stylesheet"/>
 	<script type="text/javascript">
 					$(function(){
				using("themes/icon.css");
				using(["window","messager"]);
			});

 	</script>
  </head>
  
  <body>
  <center>
  <div style="padding:5px;border:1px solid #ddd;">
  			<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add">增加</a>
  </div>
	  <table style="mytable">
	  		<tr>
	  			<th>序号</th>
	  			<th>图片</th>
	  			<th>操作</th>
	  		</tr>
		    <c:forEach items="${pictureList}" var="picture" varStatus="status">
		    	<tr>
		    		<td>${status.index+1}</td> 
		    		<td>
		    			<img src="${picture.picture_url }" style="width:750px;height:70px"/>
		    		</td>
		    		<td>
		    			<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="deletePic('${picture.id}','<%=path%>')">删除</a>
		    		</td>
		    	</tr>
		    </c:forEach>
	    </table>
    </center>
  </body>
</html>
